/* ----------------------------------------------------------------------------------------------------- */
/*  @ Import/write your custom styles here.
/*  @ Styles from this file will override 'vendors.scss' and Fuse's base styles.
/* ----------------------------------------------------------------------------------------------------- */

/* The allows \n in a tooltip to be rendered as a new line */
.mdc-tooltip--multiline .mat-mdc-tooltip-surface {
    white-space: break-spaces;
}

.compact-checkbox {
  .mdc-checkbox__native-control {
    width: 18px !important; // Reduce from 40px
    height: 18px !important; // Reduce from 40px
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
  }

  .mdc-checkbox__ripple {
    display: none; // Optional: remove ripple effect to save more space
  }
}
/*
.small-checkbox {
    .mdc-checkbox .mdc-checkbox__native-control {
        height: 10px !important;
        width: 10px !important;
        top: calc((10px - 10px) / 2) !important;
        right: calc((10px - 10px) / 2) !important;
        left: calc((10px - 10px) / 2) !important;
    }

    .mdc-checkbox {
        height: 10px !important;
        width: 10px !important;
    }

    // You might also need to adjust the visual checkbox
    .mdc-checkbox__background {
        height: 10px !important;
        width: 10px !important;
    }
}
*/

/*
   General Styles for content rendered by the <markdown> component.
   This will apply to all instances of <markdown> throughout the app.
*/

markdown {
    h1 {
        font-size: 1.6em;
        font-weight: bold;
        padding-bottom: 0.2em;
        margin-top: 0.5em;
        margin-bottom: 0.25em;
        border-bottom: 1px solid #eaecef;
    }

    h2 {
        font-size: 1.4em;
        font-weight: bold;
        padding-bottom: 0.2em;
        margin-top: 1em;
        margin-bottom: 0.4em;
        border-bottom: 1px solid #eaecef;
    }

    h3 {
        font-size: 1.1em;
        font-weight: bold;
        margin-top: 0.8em;
        margin-bottom: 0.5em;
        /* Consider removing border for H3+ or making it lighter if H1/H2 have it */
    }

    h4 {
        font-size: 1.1em;
        font-weight: bold;
        margin-top: 0.7em;
        margin-bottom: 0.2em;
    }

    h5 {
        font-size: 1em;/* Kept baseline, but could be 0.95em */
        font-weight: bold;
        margin-top: 0.6em;
        margin-bottom: 0.2em;
    }

    h6 {
        font-size: 0.85em;
        font-weight: bold;
        color: #586069;
        margin-top: 0.5em;
        margin-bottom: 0.15em;
    }

    p {
        margin-block-start: 0.3em;
        margin-block-end: 0.8em;
        line-height: 1.5;/* Slightly reduced line-height for compactness */
    }

    ul, ol {
        padding-left: 0.6em; /* Slightly reduced indentation */
        margin-block-start: 0.2em;
        margin-block-end: 0.8em;
    }

    li {
        margin-bottom: 0.2em;
    }

    blockquote {
        padding: 0 0.8em;
        color: #586069;
        border-left: 0.2em solid #dfe2e5; /* Reduced border */
        margin-left: 0;
        margin-right: 0;
        margin-block-start: 0.3em;
        margin-block-end: 0.8em;
    }

    pre {
        background-color: #f6f8fa;
        padding: 12px;
        overflow: auto;
        font-size: 85%;
        line-height: 1.45;
        border-radius: 4px;
        margin-block-start: 0.3em;
        margin-block-end: 0.8em;

        code {
            background-color: transparent;
            padding: 0;
            border-radius: 0;
            font-size: inherit;
        }
    }

    code:not(pre > code) {
        padding: 0.15em 0.3em; /* Smaller padding */
        margin: 0;
        font-size: 85%;
        background-color: rgba(27,31,35,0.05);
        border-radius: 4px;
    }

    hr {
        height: .2em;
        padding: 0;
        margin: 18px 0;
        background-color: #e1e4e8;
        border: 0;
    }

    table {
        border-collapse: collapse;
        margin-block-start: 0.3em;
        margin-block-end: 0.8em;
        display: block;
        width: max-content;
        max-width: 100%;
        overflow: auto;
    }

    th, td {
        border: 1px solid #dfe2e5;
        padding: 4px 10px;
    }

    img {
        max-width: 100%;
        height: auto;
        margin-block-start: 0.3em;
        margin-block-end: 0.8em;
    }

    a {
        color: #0366d6;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}



/* Base style for Material Symbols when used via font ligature */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined'; // Use the 'Outlined' family as the base
    font-weight: normal; // Or your preferred default weight
    font-style: normal;
    font-size: 24px; // Or your preferred default size
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 400; // Default to outlined (FILL 0), regular weight (400)
    // Adjust opsz and GRAD as needed or omit for defaults
}

/*
  Helper classes to explicitly set the FILL state for Material Symbols.
  You'll apply these WITH the base 'material-symbols-outlined' class
  or just use [style.font-variation-settings] directly.
*/

// Class for an explicitly outlined Material Symbol (FILL 0)
.g-symbol-outline {
    font-variation-settings: 'FILL' 0; // Add other axes if you want to override (e.g., 'wght' 300)
}

// Class for a solid/filled Material Symbol (FILL 1)
.g-symbol-solid {
    font-variation-settings: 'FILL' 1; // Add other axes if you want to override
}

// Example combining weight
.g-symbol-solid.g-symbol-bold {
    font-variation-settings: 'FILL' 1, 'wght' 700;
}
